import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 CrrMaterialSummaryReport 分页列表
 */
export function getCrrMaterialSummaryReportPagination(data: any) {
  return axios.get(`${context}/crrMaterialSummaryReport/pagination`, {
    params: data,
  })
}

/**
 * 获取 CrrMaterialSummaryReport 所有数据
 */
export function getCrrMaterialSummaryReportAllList(data: any) {
  return axios.get(`${context}/crrMaterialSummaryReport/allList`, {
    params: data,
  })
}

/**
 * 获取 CrrMaterialSummaryReport 详情
 */
export function getCrrMaterialSummaryReportDetailById(id: any) {
  return axios.get(`${context}/crrMaterialSummaryReport/${id}`, {
    params: { id },
  })
}

/**
 * 新增 CrrMaterialSummaryReport
 */
export function addCrrMaterialSummaryReport(data: any) {
  return axios.post(`${context}/crrMaterialSummaryReport`, data)
}

/**
 * 修改 CrrMaterialSummaryReport
 */
export function updateCrrMaterialSummaryReport(data: any) {
  return axios.put(`${context}/crrMaterialSummaryReport`, data)
}

/**
 * 删除 CrrMaterialSummaryReport
 */
export function batchRemoveCrrMaterialSummaryReport(data: any) {
  return axios.post(`${context}/crrMaterialSummaryReport/batchRemove`, data)
}
